<!--
 * @Author: daidai
 * @Date: 2022-03-04 09:23:59
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-05-07 11:05:02
 * @FilePath: \web-pc\src\pages\big-screen\view\indexs\index.vue
-->
<template>
  <div class="contents">
    <div class="contents_top">

      <ItemWrap class="contetn_lr-item" title="串口信息">
        <div class="top_left">
          <div class="top_left_item">
            <span>串口号</span>
            <el-select v-model="value1" placeholder="请选择">
            <el-option v-for="item in options1" :key="item.value" :label="item.label" :value="item.value">
            </el-option>
          </el-select>
          </div>
          <div class="top_left_item">
            <span>奇偶校验位</span>
            <el-select v-model="value2" placeholder="请选择">
            <el-option v-for="item in options2" :key="item.value" :label="item.label" :value="item.value">
            </el-option>
          </el-select>
          </div>
          <div class="top_left_item">
            <span>波特率</span>
            <el-select v-model="value3" placeholder="请选择">
            <el-option v-for="item in options3" :key="item.value" :label="item.label" :value="item.value">
            </el-option>
          </el-select>
          </div>
          <div class="top_left_item button-group">
            <el-button round><p style="font-size:20px">开始检测</p></el-button>
            <el-button round><p style="font-size:20px">结束检测</p></el-button>
          </div>
        </div>

      </ItemWrap>
      <ItemWrap class="contetn_lr-item1" title="串口设置">
        <div class="top_center_left">
          <el-button type="danger"><p style="font-size:20px">清除输出框</p></el-button>
          <el-button type="danger"><p style="font-size:20px">清除视图1</p></el-button>
          <el-button type="danger"><p style="font-size:20px">清除视图2</p></el-button>
        </div>
      </ItemWrap>
      <ItemWrap class="contetn_lr-item" title="环境信息">
        <div class="top_center_right">
          <div class="top_center_right_item">
            <span>含水量</span>
            <el-input v-model="input1" placeholder="请输入内容" style="width: 250px;"></el-input>
            <el-button round type="success"><p style="font-size:16px">更新</p></el-button>
          </div>
          <div class="top_center_right_item">
            <span>风速：</span>
            <el-input v-model="input2" placeholder="请输入内容" style="width: 250px;"></el-input>
            <el-button round type="success"><p style="font-size:16px">更新</p></el-button>
          </div>
          <div class="top_center_right_item">
            <span>位移：</span>
            <el-input v-model="input3" placeholder="请输入内容" style="width: 250px;"></el-input>
            <el-button round type="success"><p style="font-size:16px">更新</p></el-button>
          </div>
        </div>
      </ItemWrap>
      <ItemWrap class="contetn_lr-item1" title="实时显示">
        <div class="content_right_my">
          <LeftTop/>
        <LeftTopPlus/>
        </div>
        
      </ItemWrap>
    </div>
    <div class="contents_down">
      <div class="contents_left">
        <!-- <CenterMap class="contetn_center_top" /> -->
        <dv-border-box-13>
          <div style="display: flex;justify-content: center;align-items:center;width: 100%;height: 100%;">
            <dv-scroll-board :config="config" style="width:95%;height: 95%;" />
          </div>
        </dv-border-box-13>
      </div>
      <div class="contents_center">
        <el-image style="width: 100%; height: 100%" :src="url" />
        <!-- <dv-flyline-chart-enhanced :config="config" style="width:100%;height:100%;" /> -->
        <!-- <CenterMap style="width: 100%;height: 100%;" /> -->
      </div>
      <div class="contents_right">
        <ItemWrap class="contetn_lr-item2" title="报警次数">
          <RightTop />
        </ItemWrap>
        <ItemWrap class="contetn_lr-item2" title="安装计划">
          <CenterBottom />
        </ItemWrap>

      </div>
    </div>

  </div>
</template>

<script>
import LeftTop from './left-top.vue'
import LeftCenter from "./left-center.vue";
import LeftBottom from "./left-bottom.vue";
import CenterMap from "./center-map.vue";
import CenterBottom from "./center-bottom.vue";
import RightTop from "./right-top.vue";
import RightCenter from "./right-center.vue";
import RightBottom from "./right-bottom.vue";
import LeftTopPlus from './left-top-plus.vue'
const url =
  'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg'
export default {
  components: {
    LeftTop,
    LeftCenter,
    LeftBottom,
    CenterMap,
    RightTop,
    RightCenter,
    RightBottom,
    CenterBottom,
    LeftTopPlus
  },
  data() {
    return {
      config: {
        data: [
          ['01', '02', '00','91','00','00','04','01'],
          ['00','00','04','01','01', '02', '00','91'],
          ['04','01','01', '02','02', '00','91','00'],
          ['02', '00','91','02','02', '00','04','01'],
          ['01', '02', '00','91','00','00','04','01'],
          ['00','00','04','01','01', '02', '00','91'],
          ['04','01','01', '02','02', '00','91','00'],
          ['02', '00','91','02','02', '00','04','01'],
          ['01', '02', '00','91','00','00','04','01'],
          ['00','00','04','01','01', '02', '00','91'],
          ['04','01','01', '02','02', '00','91','00'],
          ['02', '00','91','02','02', '00','04','01'],
          ['01', '02', '00','91','00','00','04','01'],
          ['00','00','04','01','01', '02', '00','91'],
          ['04','01','01', '02','02', '00','91','00'],
          ['02', '00','91','02','02', '00','04','01'],
          ['01', '02', '00','91','00','00','04','01'],
          ['00','00','04','01','01', '02', '00','91'],
          ['04','01','01', '02','02', '00','91','00'],
          ['02', '00','91','02','02', '00','04','01'],
          ['01', '02', '00','91','00','00','04','01'],
          ['00','00','04','01','01', '02', '00','91'],
          ['04','01','01', '02','02', '00','91','00'],
          ['02', '00','91','02','02', '00','04','01'],
          ['01', '02', '00','91','00','00','04','01'],
          ['00','00','04','01','01', '02', '00','91'],
          ['04','01','01', '02','02', '00','91','00'],
          ['02', '00','91','02','02', '00','04','01']
        ]
        
      },
      url: url,
      options1: [{
          value: '选项1',
          label: 'COM1'
        }, {
          value: '选项2',
          label: 'COM2'
        }, {
          value: '选项3',
          label: 'COM3'
        }, {
          value: '选项4',
          label: 'COM4'
        }, {
          value: '选项5',
          label: 'COM5'
        }],
        value1: '',
        options2: [{
          value: '选项1',
          label: '有'
        }, {
          value: '选项2',
          label: '无'
        }],
        value2: '',
        options3: [{
          value: '选项1',
          label: '2400'
        }, {
          value: '选项2',
          label: '4800'
        },{
          value:'选项3',
          label:'9600'
        }],
        value3: '',
        input1:'',
        input2:'',
        input3:''

    }
  },

  filters: {
    numsFilter(msg) {
      return msg || 0;
    },
  },
  created() {
  },

  mounted() { },
  methods: {

  },
};
</script>
<style lang="scss" scoped>
// 内容
.contents {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

//左边 右边 结构一样
.contents_top {
  display: flex;
  height: 40vh;
  margin-top: 2rem;
}

.contents_down {
  height: 60vh;
  display: flex;
  margin-top: 3rem;
}

.contents_left {
  width: 30%;
}

.contents_center {
  width: 30%;
  margin-left: 5%;
}

.contents_right {
  width: 30%;
  display: flex;
  flex-direction: column;
  margin-left: 5%;
}

.contetn_lr-item {
  display: flex;
  width: 30%;
}

.contetn_lr-item1 {
  display: flex;
  width: 20%;
}

.contetn_lr-item2 {
  display: flex;
  width: 100%;
}

.top_left{
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-around;
  align-items:center;
}
.top_center_right{
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}
.top_left_item{
  display: flex;
  width: 80%;
  justify-content: space-between;
  align-items: center;
}
.top_center_right_item{
  display: flex;
  width: 80%;
  justify-content: space-between;
  align-items: center;
}

.button-group{
  justify-content: space-around;
}

.top_center_left{
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.content_right_my{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
span{
  font-size:16px;
}
@keyframes rotating {
  0% {
    -webkit-transform: rotate(0) scale(1);
    transform: rotate(0) scale(1);
  }

  50% {
    -webkit-transform: rotate(180deg) scale(1.1);
    transform: rotate(180deg) scale(1.1);
  }

  100% {
    -webkit-transform: rotate(360deg) scale(1);
    transform: rotate(360deg) scale(1);
  }
}
</style>
